package com.itheima.app;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * ClassName: App2
 * Description:
 * Date: 2023/03/22 PM 8:35:04
 * <p>
 * project: springboot
 * package: com.itheima.app
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
public class App2 {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext2.xml");
        String[] names = ctx.getBeanDefinitionNames();
        for (String name : names) {
            System.out.println(name);
        }
    }
}
